package cn.webdai.activemq.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

/**
 * @author 戴金华
 * @date 2019-12-30 18:03
 */
@Configuration
public class BeanConfig {


    //定义存放消息的队列
    @Bean
    public Queue getQueue(){
        return new ActiveMQQueue("activeMQQueue");
    }
}
